Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HistoryBuffer: add HistoryBufferView, similar to VecView #480

Closed

Conversation

sosthene-nitrokey
Copy link
Contributor

The view uses iter::Chain<Slice::Iter, Slice::Iter> as the iterator. This is conceptually simpler, and would also allow exposing the other guarantees of the iterator (Reverse, TrustedLen, Fused) if we want to. This also means the iterator does not have the const N: usize in its type.

We could change HistoryBuffer::oldest_ordered to use the same iterator, but that would be a breaking change.

@sosthene-nitrokey
Copy link
Contributor Author

replaced by #493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant